package com.ml.shs.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;

import java.util.Collection;
import java.util.Date;

@Data
public class Goods {
    @Id
    private String id;
    private String name;
    private String belonger;
    private String contact;
    private String createrId;
    private Date createTime;
    private String originalPrice;
    private String price;
    private Collection<String> classify;
    private String desc;
    private String state;
    private String buyTime;
    private Collection<String> photoIds;

    public long getCreateTime(){
        return createTime.getTime();
    }
}
